<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html><html lang="en">
	<head>
		<!--加载header文件-->
		<?php
		include_once 'public/views/header.php';
		include_once 'public/home/html/alert.php';
		?>
		<?php 
		include_once 'public/home/html/select.php';
		?>
		<link rel="stylesheet" href="public/css/list.css" />
		<link rel="stylesheet" href="public/xr/xrDatatable.css" />
		<script src="public/xr/xrDatatable.js"></script>
		<script src="public/js/list.js"></script>
		<script src="public/home/js/function.js"></script>		
		<style>
			.content{
				margin-left: 10%;
				margin-top:5%;
			}
			.item{
				margin-left: 2%;
			}

		</style>
	</head>
	<body>
		<input type="hidden" id="url" value="<?php base_url() ?>">
		<input type="hidden" id="id" value="<?php echo $id?>">
		<!-- <div class='content'>			
			<h2>浙江工业职业技术学院学生顶岗实习巡查记录表</h2>
			<div>
				<h4>一、基本数据</h4>
				<p class='item'>
					1.巡查部门：<?php echo $teacher_dept_name; ?><br>
					2.巡查人员:<?php echo $username; ?><br>
					3.巡查时间:<?php echo $sub_time; ?><br>
					4.单位名称:<?php echo $unit_name; ?><br>
					5.单位地址:<?php echo $unit_address; ?><br>
					6.单位联系人:<?php echo $unit_contact; ?><br>
					7.单位电话:<?php echo $unit_phone; ?><br>
					8.实习巡查任务：<?php echo $task ?>
				</p>
				<h4>二、巡查记录</h4>
				<p >
					<h5>【学生信息】</h5>
					<div class="item">
						<?php 
					$num=0;
						foreach ($data as $k => $v) {
							$num=$k+1;
							echo $num.'.'.$v['student_class_name'].'-'.$v['student_name'].'-'.$v['contact_phone'].'<br>';
						}
						echo '共有'.$num.'人在本单位实习';
					 ?>
					</div>
				</p>
				<p>
					<h5>【巡查调研】</h5>
					<div class='item'>
						1.【职业道德】 <?php echo (new Table5Eval)->show($eval1).''.$eval1_remark; ?><br>
						2.【工作态度】 <?php echo (new Table5Eval)->show($eval2).''.$eval2_remark; ?><br>
						3.【专业水平】 <?php echo (new Table5Eval)->show($eval3).''.$eval3_remark; ?><br>
						4.【团队合作】 <?php echo (new Table5Eval)->show($eval5).''.$eval4_remark; ?><br>
						5.【沟通能力】 <?php echo (new Table5Eval)->show($eval5).''.$eval5_remark; ?><br>
						6.【创新能力】 <?php echo (new Table5Eval)->show($eval6).''.$eval6_remark; ?><br>
						7.【心理素质】 <?php echo (new Table5Eval)->show($eval7).''.$eval7_remark; ?><br>
					</div>
					<div>
						<h5>【实习单位意见及建议】</h5>
						<p style="text-indent:25px">
							<?php echo $advice; ?>
						</p>
					</div>
					<p class='item' style="margin-top:5%">
						单位负责人或企业导师签名:<?php echo $mentor_name ?><br>
						联系电话:<?php echo $mentor_phone ?><br>
						时间：<?php echo $mentor_time ?>
					</p>
				</p>
				<p>
					<h4>三、巡查情况小结</h4>
					<div class='item'>
						<?php echo $summary; ?>
					</div>
				</p>
			</div>
		</div> -->
	</body>
	<script>
		$(function(){
			addDialogButton("导出",Export);
		})
		var Export=function(){				
			var id=$('#id').val();		
			var msg = "请确认是否导出?";
		    swal({
		        title: "请确认",
		        text: msg,
		        type: "warning",
		        showCancelButton: true,
		        closeOnConfirm: true,
		        confirmButtonText: "确定",
		        cancelButtonText: '取消',
		        confirmButtonColor: "#ec6c62"
		    }, function(isConfirm) {
		        if(isConfirm) {
		            var load_alert=loadAlert('数据导出中，请稍后...');
		            $.ajax({
		                type: "post",
		                url: "Admin/StatisticsTable5/Export/"+id+"/1",
		                async: true,
		                dataType:'json',
		                success: function(data) {
		                    closeAlert(load_alert);
		                    if(data.status) {
		                        location.href=getRootPath()+'/'+data.v;
		                    } else {
		                        window.parent.topMessagePrompt('error',ret.msg);
		                    }
		                }
		            });
		        }
		    });
		}
	</script>
</html>